import React from 'react';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import { BoxPack, Away, Qa, Label, Qr, Split, Stock, Angle, Join, Sort, Pick, Pack, Rotate, Select, SortIn,
    GoodIn, Out, Tag, SortOut, Good, Standout } from 'client/index';

const AppRoute = () => (
    <Router>
        <Switch>
            <Route path="/angle" component={Angle}/>
            <Route path="/away" component={Away}/>
            <Route path="/boxpack" component={BoxPack}/>
            <Route path="/goods" component={Good}/>
            <Route path="/goodsin" component={GoodIn}/>
            <Route path="/join" component={Join}/>
            <Route path="/label" component={Label}/>
            <Route path="/out" component={Out}/>
            <Route path="/pack" component={Pack}/>
            <Route path="/pick" component={Pick}/>
            <Route path="/qa" component={Qa}/>
            <Route path="/qr" component={Qr}/>
            <Route path="/rotate" component={Rotate}/>
            <Route path="/select" component={Select}/>
            <Route path="/sort" component={Sort}/>
            <Route path="/sortin" component={SortIn}/>
            <Route path="/sortout" component={SortOut}/>
            <Route path="/split" component={Split}/>
            <Route path="/standout" component={Standout}/>
            <Route path="/stock" component={Stock}/>
            <Route path="/tag" component={Tag}/>
        </Switch>
    </Router>
);

export {AppRoute};
